<?php
!defined('IN_ROOT') && exit('Access Denied');
class areacontrol extends base {
    function areacontrol(& $get,& $post) {
        $this->base( & $get,& $post);
        $this->load('area');
    }
    function onajaxgetcity() {
    	$areaid = intval($this->get[2]);
    	$areacn=$this->areacn;
    	$data = $areacn[$areaid];
    	echo '<select name="area2" id="area2">';
    	if($data){
    		foreach ($data['foot'] as $k => $v ) {
    			echo '<option value="'.$k.'">'.$v.'</option>';
    		}
    	}
    	echo '</select>';
    	exit();
    }
}
?>